﻿using DDDSystem.Domain.Entities;
using DDDSystem.Domain.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DDDSystem.Domain;

/// <summary>
/// 基本字典仓储接口
/// </summary>
public interface IBasicDictionaryRepository
{
    /// <summary>
    /// 创建基础字典
    /// </summary>
    /// <param name="basicDictionary"></param>
    /// <returns></returns>
    BasicDictionary Post(BasicDictionary basicDictionary);

    /// <summary>
    /// 修改基础字典
    /// </summary>
    /// <param name="basicDictionary"></param>
    /// <returns></returns>
    int Put(Guid id, BasicDictionary basicDictionary);

    /// <summary>
    /// 删除基础字典
    /// </summary>
    /// <param name="basicDictionary"></param>
    /// <returns></returns>
    int Delete(Guid basicDictionary);

    /// <summary>
    /// 查询基础字典
    /// </summary>
    /// <param name="type"></param>
    /// <returns></returns>
    IList<BasicDictionary> Get(BasicDictionaryType type);
}


